there are small code chage to aircraft.cfg file that you have to make in order
to get yaw damper button work in FS2004

in section autopilot section chage this small line like this:
[autopilot]
yaw_damper_gain=1.000000